package org.webArchi.common.core.service;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.webArchi.common.api.domain.User;
import org.webArchi.common.api.service.UserManagmentService;
import org.webArchi.common.exception.SriTelRuntimeException;

import javax.persistence.PersistenceException;

/**
 * User managment service implementation class.
 */
public class UserManagmentServiceImpl implements UserManagmentService {

    private static final Logger logger = LoggerFactory.getLogger(UserManagmentServiceImpl.class);

    @Override
    public void createUser(User user) throws SriTelRuntimeException, PersistenceException, Exception {
        logger.debug("Attempt to create new user account for user name : {} ",user.getUserId());
        throw new UnsupportedOperationException("Not yet implemented");
    }

    @Override
    public User getUserByUserId(String userId) {
        logger.debug("Attempt to get user account information for user id : {} ",userId);
        throw new UnsupportedOperationException("Not yet implemented");
    }

    @Override
    public void updateUser(User user) throws SriTelRuntimeException, PersistenceException, Exception {
        logger.debug("Updating user information for user id : {} ",user.getUserId());
        throw new UnsupportedOperationException("Not yet implemented");
    }

    @Override
    public void deleteUser(String userId) throws SriTelRuntimeException, PersistenceException, Exception {
        logger.debug("Attempt tp delete user account for user id : {} ",userId);
        throw new UnsupportedOperationException("Not yet implemented");
    }
}
